package cn.com.dhcc.turbo.service.registry.sync;

import java.util.List;

import cn.com.dhcc.app.core.exception.ServiceException;
import cn.com.dhcc.turbo.entity.registry.SynchronizeInfo.SyncType;


/**
 * 打包内网信息  向网闸同步
 * 
 * @日期 2015-4-22 上午11:27:34
 * @作者  高强
 */
public interface ISynchronizeToGapService {
	public static String SUFFIX=".sync";
	public static String SYNCTYPE="syncType";
	public static String SYNCDATA="syncData";
	
	/**
	 * 将list信息发送到网闸
	 * @param list
	 * @param type
	 * @param ip
	 * @param port
	 * @throws ServiceException 
	 */
	public void sendToGap(List<?> list,SyncType type, String ip, int port,String home,String username,String password) throws ServiceException;
	
	
	/**
	 * 从网闸解析文件
	 * @param ip
	 * @param port
	 * @param home
	 * @param username
	 * @param passwrod
	 * @throws ServiceException
	 */
	public void analyzeFromGap(String ip, int port,String home,String username,String password) throws ServiceException;

}
